home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 039a / jpsrc2.zip / README < prev    next >
Text File  |  1991-12-13  |  16KB  |  324 lines

  1. The Independent JPEG Group's JPEG software
  2. ==========================================
  3.  
  4. README for release 2 of 13-Dec-91
  5. =================================
  6.  
  7. This distribution contains the second public release of the Independent JPEG
  8. Group's free JPEG software.  You are welcome to redistribute this software and
  9. to use it for any purpose, subject to the conditions under LEGAL ISSUES, below.
  10.  
  11. For installation instructions, see file SETUP; for usage instructions, see
  12. file USAGE (or the cjpeg.1 and djpeg.1 manual pages).
  13.  
  14. This software is still undergoing revision.  Updated versions may be obtained
  15. by FTP or UUCP to uunet.uu.net and other archive sites; see ARCHIVE LOCATIONS
  16. below for details.
  17.  
  18. If you intend to become a serious user of this software, please contact
  19. jpeg-info@uunet.uu.net to be added to our electronic mailing list.  Then
  20. you'll be notified of updates and have a chance to participate in discussions,
  21. etc.
  22.  
  23. This software is the work of Tom Lane, Philip Gladstone, Luis Ortiz,
  24. Lee Crocker, and other members of the Independent JPEG Group.
  25.  
  26.  
  27. COMPUSERVE NOTE
  28. ===============
  29.  
  30. The CompuServe distribution has a few differences from the standard Usenet
  31. distribution to accommodate common microcomputer file formats.  First, the
  32. filenames have been truncated to eight characters plus a three-character
  33. extension.  This affects the following files:
  34.  
  35. changelog       --> changelo
  36. architecture    --> architec
  37. codingrules     --> codingru
  38. makefile.ansi   --> makefile.ans
  39. makefile.unix   --> makefile.uni
  40. makefile.manx   --> makefile.man
  41.  
  42. Second, all text files not specific to non-MSDOS environments have CR/LF
  43. line terminations instead of LF only.
  44.  
  45.  
  46. DISCLAIMER
  47. ==========
  48.  
  49. THIS SOFTWARE IS NOT COMPLETE NOR FULLY DEBUGGED.  It is not guaranteed to be
  50. useful for anything, nor to be compatible with subsequent releases, nor to be
  51. an accurate implementation of the JPEG standard.  (See LEGAL ISSUES for even
  52. more disclaimers.)
  53.  
  54. Please report any problems with this software to jpeg-info@uunet.uu.net.
  55.  
  56.  
  57. WHAT'S HERE
  58. ===========
  59.  
  60. This distribution contains software to implement JPEG image compression and
  61. decompression.  JPEG (pronounced "jay-peg") is a standardized compression
  62. method for full-color and gray-scale images.  JPEG is intended for
  63. "real-world" scenes; cartoons and other non-realistic images are not its
  64. strong suit.  JPEG is lossy, meaning that the output image is not necessarily
  65. identical to the input image.  Hence you should not use JPEG if you have to
  66. have identical output bits.  However, on typical images of real-world scenes,
  67. very good compression levels can be obtained with no visible change, and
  68. amazingly high compression levels can be obtained if you can tolerate a
  69. low-quality image.  For more details, see the references, or just experiment
  70. with various compression settings.
  71.  
  72. The software implements JPEG baseline and extended-sequential compression
  73. processes.  Provision is made for supporting all variants of these processes,
  74. although some uncommon parameter settings aren't implemented yet.  For legal
  75. reasons, we are not distributing code for the arithmetic-coding process; see
  76. LEGAL ISSUES.  At present we have made no provision for supporting the
  77. progressive or lossless processes defined in the standard.
  78.  
  79. The present software is still largely in the prototype stage.  It does not
  80. support all possible variants of the JPEG standard, and some functions have
  81. rather slow and/or crude implementations.  However, it is useful already.
  82.  
  83. The emphasis in designing this software has been on achieving portability and
  84. flexibility, while also making it fast enough to be useful.  We have not yet
  85. undertaken serious performance measurement or tuning; we intend to do so in
  86. the future.
  87.  
  88.  
  89. This software can be used on several levels:
  90.  
  91. * As canned software for JPEG compression and decompression.  Just edit the
  92.   Makefile and configuration files as needed (see file SETUP), compile and go.
  93.   Members of the independent JPEG group will improve the out-of-the-box
  94.   functionality and speed as time goes on.
  95.  
  96. * As the basis for other JPEG programs.  For example, you could incorporate
  97.   the decompressor into a general image viewing package by replacing the
  98.   output module with write-to-screen functions.  For an implementation on
  99.   specific hardware, you might want to replace some of the inner loops with
  100.   assembly code.  For a non-command-line-driven system, you might want a
  101.   different user interface.  (Members of the group will be producing Macintosh
  102.   and Amiga versions with more appropriate user interfaces, for example.)
  103.  
  104. * As a toolkit for experimentation with JPEG and JPEG-like algorithms.  Most
  105.   of the individual decisions you might want to mess with are packaged up into
  106.   separate modules.  For example, the details of color-space conversion and
  107.   subsampling techniques are each localized in one compressor and one
  108.   decompressor module.  You'd probably also want to extend the user interface
  109.   to give you more detailed control over the JPEG compression parameters.
  110.  
  111. In particular, we welcome the use of this software as the basis for commercial
  112. products; no royalty is required.
  113.  
  114.  
  115. ARCHIVE LOCATIONS
  116. =================
  117.  
  118. The "official" archive site for this software is uunet.uu.net (Internet
  119. address 137.39.1.2 or 192.48.96.2).  The most recent released version can
  120. always be found there in directory graphics/jpeg.  This particular version
  121. will be archived as jpegsrc.v2.tar.Z.  If you are on the Internet, you can
  122. retrieve files from UUNET by anonymous FTP.  If you don't have FTP access,
  123. UUNET's archives are also available via UUCP; contact postmaster@uunet.uu.net
  124. for information on retrieving files that way.
  125.  
  126. Various other Internet sites maintain copies of the UUNET file, which may or
  127. may not be up-to-date.  In Europe, try nic.funet.fi (128.214.6.100; look in
  128. directory pub/graphics/programs/jpeg).
  129.  
  130. You can also obtain this software from CompuServe, in the GRAPHSUPPORT forum
  131. (GO PICS), library 10; this version will be file jpsrc2.zip.
  132.  
  133. If you are not reasonably handy at configuring and installing portable C
  134. programs, you may have some difficulty installing this package.  You may
  135. prefer to obtain a pre-built executable version.  A collection of pre-built
  136. executables for various machines is currently available for anonymous FTP at
  137. procyon.cis.ksu.edu (129.130.10.80 --- this number is due to change soon);
  138. look under /pub/JPEG.  The administrators of this system ask that FTP traffic
  139. be limited to non-prime hours.  For more information on this archive, please
  140. contact Steve Davis (strat@cis.ksu.edu).  This collection is not maintained by
  141. the Independent JPEG Group, and programs in it may not be the latest version.
  142.  
  143.  
  144. SUPPORTING SOFTWARE
  145. ===================
  146.  
  147. You will probably want Jef Poskanzer's PBMPLUS image software, which provides
  148. many useful operations on PPM-format image files.  In particular, it can
  149. convert PPM images to and from a wide range of other formats.  You can FTP
  150. this free software from export.lcs.mit.edu (contrib/pbmplus*.tar.Z) or
  151. ftp.ee.lbl.gov (pbmplus*.tar.Z).  Unfortunately PBMPLUS is not nearly as
  152. portable as the JPEG software is; you are likely to have difficulty making it
  153. work on any non-Unix machine.
  154.  
  155. If you are using X Windows you might want to use the xv or xloadimage viewers
  156. to save yourself the trouble of converting PPM to some other format.  Both of
  157. these can be found in the contrib directory at export.lcs.mit.edu.
  158. There will soon be a new release of xv that incorporates our software and thus
  159. can read and write JPEG files directly.  (NOTE: since xv internally reduces
  160. all images to 8 bits/pixel, a JPEG file written by xv will not be very high
  161. quality.  Caveat user.)
  162.  
  163.  
  164. SOFTWARE THAT'S NO HELP AT ALL
  165. ==============================
  166.  
  167. Handmade Software's shareware PC program GIF2JPG produces files that are
  168. totally incompatible with our programs.  They use a proprietary format that is
  169. an amalgam of GIF and JPEG representations.  However, you can force GIF2JPG
  170. to produce compatible files with its -j switch, and their decompression
  171. program JPG2GIF can read our files (at least ones produced with our default
  172. option settings).
  173.  
  174. Unfortunately, most commercial JPEG implementations are also incompatible as
  175. of this writing, especially programs released before summer 1991.  The root of
  176. the problem is that the ISO JPEG committee failed to specify a concrete file
  177. format.  Many vendors "filled in the blanks" on their own, creating
  178. proprietary formats that no one else could read.  (For example, none of the
  179. early commercial JPEG implementations for the Macintosh were able to exchange
  180. compressed files.)
  181.  
  182. The file format we have adopted is called JFIF (see REFERENCES).  This format
  183. has been agreed to by a number of major commercial JPEG vendors, and we expect
  184. that it will become the de facto standard.  JFIF is a minimal representation;
  185. work is also going forward to incorporate JPEG compression into the TIFF
  186. standard, for use in "high end" applications that need to record a lot of
  187. additional data about an image.  We intend to support JPEG-in-TIFF in the
  188. future.  We hope that these two formats will be sufficient and that other,
  189. incompatible JPEG file formats will not proliferate.
  190.  
  191. Indeed, part of the reason for developing and releasing this free software is
  192. to help force rapid convergence to de facto standards for JPEG file formats.
  193. SUPPORT STANDARD, NON-PROPRIETARY FORMATS: demand JFIF or JPEG-in-TIFF!
  194.  
  195.  
  196. REFERENCES
  197. ==========
  198.  
  199. The best and most readily available introduction to the JPEG compression
  200. algorithm is Wallace's article in the April '91 CACM:
  201.     Wallace, Gregory K.  "The JPEG Still Picture Compression Standard",
  202.     Communications of the ACM, April 1991 (vol. 34 no. 4), pp. 30-44.
  203. (Adjacent articles in that issue discuss MPEG motion picture compression,
  204. applications of JPEG, and related topics.)  We highly recommend reading that
  205. article before trying to understand the innards of any JPEG software.
  206.  
  207. For more detail about the JPEG standard you pretty much have to go to the
  208. draft standard (which is not nearly as intelligible as Wallace's article).
  209. The standard is not now available electronically; you must order a paper copy
  210. through ISO.  In the US, copies may be ordered from ANSI Sales at (212)
  211. 642-4900.  The standard is divided into two parts: Part 1 is the actual
  212. specification, and Part 2 covers compliance testing methods.  The current
  213. "committee draft" version of Part 1 is titled "Digital Compression and Coding
  214. of Continuous-tone Still Images, Part 1: Requirements and guidelines" and has
  215. document number ISO/IEC CD 10918-1.  (The alternate number SC2 N2215 should
  216. also be mentioned when ordering.)  This draft is expected to be superseded by
  217. the Draft International Standard version around the end of November 1991.
  218. Ordering info will be the same as above, but replace "CD" with "DIS" in the
  219. document number (alternate number not yet known).  The committee draft of
  220. Part 2 is expected to be available around the end of December 1991.  It will
  221. be titled "Digital Compression and Coding of Continuous-tone Still Images,
  222. Part 2: Compliance testing" and will have document number ISO/IEC CD 10918-2
  223. (alternate number not yet known).
  224.  
  225. The JPEG standard does not specify all details of an interchangeable file
  226. format.  For the omitted details we follow the "JFIF" conventions, revision
  227. 1.01.  A copy of the JFIF spec is available from:
  228.     Literature Department
  229.     C-Cube Microsystems, Inc.
  230.     399A West Trimble Road
  231.     San Jose, CA  95131
  232.     (408) 944-6300
  233. Requests can also be e-mailed to info@c3.pla.ca.us.  The same source can
  234. supply copies of the draft JPEG-in-TIFF specs.
  235.  
  236. If you want to understand this implementation, start by reading the
  237. "architecture" documentation file.  Please read "codingrules" if you want to
  238. contribute any code.
  239.  
  240.  
  241. LEGAL ISSUES
  242. ============
  243.  
  244. The authors make NO WARRANTY or representation, either express or implied,
  245. with respect to this software, its quality, accuracy, merchantability, or
  246. fitness for a particular purpose.  This software is provided "AS IS", and you,
  247. its user, assume the entire risk as to its quality and accuracy.
  248.  
  249. This software is copyright (C) 1991, Thomas G. Lane.
  250. All Rights Reserved except as specified below.
  251.  
  252. Permission is hereby granted to use, copy, modify, and distribute this
  253. software (or portions thereof) for any purpose, without fee, subject to these
  254. conditions:
  255. (1) If any part of the source code for this software is distributed, then this
  256. README file must be included, with this copyright and no-warranty notice
  257. unaltered; and any additions, deletions, or changes to the original files
  258. must be clearly indicated in accompanying documentation.
  259. (2) If only executable code is distributed, then the accompanying
  260. documentation must state that "this software is based in part on the work of
  261. the Independent JPEG Group".
  262. (3) Permission for use of this software is granted only if the user accepts
  263. full responsibility for any undesirable consequences; the authors accept
  264. NO LIABILITY for damages of any kind.
  265.  
  266. Permission is NOT granted for the use of any author's name or author's company
  267. name in advertising or publicity relating to this software or products derived
  268. from it.  This software may be referred to only as "the Independent JPEG
  269. Group's software".
  270.  
  271. We specifically permit and encourage the use of this software as the basis of
  272. commercial products, provided that all warranty or liability claims are
  273. assumed by the product vendor.
  274.  
  275.  
  276. ansi2knr.c is included in this distribution by permission of L. Peter Deutsch,
  277. sole proprietor of its copyright holder, Aladdin Enterprises of Menlo Park, CA.
  278. ansi2knr.c is NOT covered by the above copyright and conditions, but instead
  279. by the usual distribution terms of the Free Software Foundation; principally,
  280. that you must include source code if you redistribute it.  (See the file
  281. ansi2knr.c for full details.)  However, since ansi2knr.c is not needed as part
  282. of any product generated from the JPEG code, this does not limit you more than
  283. the foregoing paragraphs do.
  284.  
  285.  
  286. It appears that the arithmetic coding option of the JPEG spec is covered by
  287. patents owned by IBM and AT&T, as well as a pending Japanese patent of
  288. Mitsubishi.  Hence arithmetic coding cannot legally be used without obtaining
  289. one or more licenses.  For this reason, support for arithmetic coding has been
  290. removed from the free JPEG software.  (Since arithmetic coding provides only a
  291. marginal gain over the unpatented Huffman mode, it is unlikely that very many
  292. people will choose to use it.  If you do obtain the necessary licenses,
  293. contact jpeg-info@uunet.uu.net for a copy of our arithmetic coding modules.)
  294. So far as we are aware, there are no patent restrictions on the remaining
  295. code.
  296.  
  297.  
  298. We are required to state that
  299.     "The Graphics Interchange Format(c) is the Copyright property of
  300.     CompuServe Incorporated.  GIF(sm) is a Service Mark property of
  301.     CompuServe Incorporated."
  302.  
  303.  
  304. TO DO
  305. =====
  306.  
  307. Many of the modules need fleshing out to provide more complete
  308. implementations, or to provide faster paths for common cases.  The greatest
  309. needs are for (a) decent color quantization, and (b) a memory manager
  310. implementation that can work in limited memory by swapping "big" images to
  311. temporary files.  I (Tom Lane) am going to work on color quantization next.
  312. Volunteers to write a PC memory manager, or to work on any other modules, are
  313. welcome.
  314.  
  315. We'd appreciate it if people would compile and check out the code on as wide a
  316. variety of systems as possible, and report any portability problems
  317. encountered (with solutions, if possible).  Checks of file compatibility with
  318. other JPEG implementations would also be of interest.  Finally, we would
  319. appreciate code profiles showing where the most time is spent, especially on
  320. unusual systems.
  321.  
  322. Please send bug reports, offers of help, etc. to jpeg-info@uunet.uu.net.
  323. From CompuServe, use the address ">internet:jpeg-info@uunet.uu.net".
  324.